package cn.edu.zut.cs.DAO;

import cn.edu.zut.cs.Model.Reader;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReaderDAO {
    void insertReader(Reader reader);
    void insertAll(List<Reader> readerList);

    void deleteReader(Reader reader);
    void deleteAll(List<Reader> readerList);
    void deleteById(String id);
    void modifyReader(Reader reader);
    Reader queryOneReader(String id);
    Reader queryOneReaderById(String id);

    static List<Reader> queryAll() {
        return null;
    }
}